package com.lmxdawn.api.dnf.dto.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 登录请求
 */
@Data
public class LoginReq {

    /**
     * 手机号
     */
    @NotBlank(message = "valid.phone.not_empty")
    @Pattern(regexp = "^1\\d{10}$", message = "valid.phone.fmt_incorrect")
    private String phone;

    /**
     * 密码
     */
    private String password;

    /**
     * 验证码
     */
    private String phoneCode;

    private String type;

}
